/**
 * 
 */
package com.base.myproject.client.ui.dialog;

import com.extjs.gxt.ui.client.Style.Scroll;
import com.extjs.gxt.ui.client.widget.Dialog;

/**
 * @author zgw
 *2009-10-15 下午03:05:23
 * javazgw@gmail.com
 */
public class MessageDialog  extends Dialog{
	String message;
	public MessageDialog (String message)
	{
		this.message = message; 
	
		init();
	}

	void init()
	{
		 setHeading("对话框");
		 addText(message);  
		 setButtons(Dialog.OKCANCEL);  
		 setBodyStyleName("pad-text");  
		   
		 setScrollMode(Scroll.AUTO);  
		 setHideOnButtonClick(true);
		
	}
	
}
